package com.pearadmin.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pearadmin.common.nucleus.base.BaseModel;
import lombok.Data;
import org.apache.ibatis.type.Alias;

@Data
@Alias("SysUserRole")
@TableName("sys_user_role")
public class SysUserRole extends BaseModel {
    //唯一标识
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;
    //用户标识
    @TableField("user_id")
    private String userId;
    //角色标识
    @TableField("role_id")
    private String roleId;
}
